const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    publicPath: "/",
    transpileDependencies: true,
    lintOnSave: false,
    devServer: {
        proxy: {
          '/api': {
            target: 'http://home.19951106.xyz:15333',
            changeOrigin: true, // 是否改变源地址
            pathRewrite:{'^/api':''},//路径改写
          },
          '/dev': {
            target: 'http://127.0.0.1:5001',
            changeOrigin: true, // 是否改变源地址
            pathRewrite:{'^/dev':''},//路径改写
          },
          
        }
      }
})